package com.koron.rating.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.rating.feign.bean.DefectEquipmentQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author: rocky
 * @Date: 2022/1/14 16:03
 */
@FeignClient(value = "eam-service-order", fallbackFactory = FeignFallbackFactory.class)
public interface DefectCountFeign {

    @PostMapping(value = "/defect/queryEquipmentDefectNums")
    Response queryEquipmentDefectNums(@RequestBody List<DefectEquipmentQuery> defectEquipmentQueryList);

}
